<tr>
	<td width="130"><?= $title; ?>:</td>
	<td>
		<select style="width:100%;" name="<?= $name; ?>" class="<?= $class; ?>">
			<? foreach($options as $option): ?>
				<? if($selected && ( (is_array($selected) && isset($selected[current($option)])) || $selected == current($option))): ?>
					<option value="<?=current($option);?>" selected><?=next($option);?></option>
				<? else: ?>
					<option value="<?=current($option);?>"><?=next($option);?></option>
				<? endif; ?>
			<? endforeach; ?>
		</select>
	</td>
</tr>
<? if($error): ?>
	<tr>
		<td></td>
		<td><img src='/img/silk/exclamation.png' style="vertical-align:top">&nbsp;&nbsp;<span style='color:Black; font-weight:600; font-size:12px; font-family:Helvetica'><?= $error; ?></span></td>
	</tr>
<? endif; ?>